<?php

namespace app\api\controller\ai;

use app\common\controller\BaseController;
use hg\apidoc\annotation as Apidoc;
use app\common\service\ai\SystemConfigService;

/**
 * @Apidoc\Title("系统配置管理")
 * @Apidoc\Group("ai")
 * @Apidoc\Sort("300")
 */
class SystemConfig extends BaseController {

    /**
     * @Apidoc\Title("详情")
     * @Apidoc\Method("POST")
     * @Apidoc\Param("key", type="string", require=true, desc="配置key(OPEN_ACCOUNT_FEE开户费,SPEAKER_POINT新增音色扣点)")
     * @Apidoc\Returned(ref="app\common\model\ai\SystemConfigModel", field="title,value")
     * })
     */
    public function getDetail() {
        $result = SystemConfigService::getDetail($this->data['key']);
        return success($result);
    }

}
